package dashboard

// 销售头部面板数据
type MarketBoardResponse struct {
	StoreSold      int64 `json:"store_sold"`
	NotDistribute  int64 `json:"not_distribute"`
	Distribute     int64 `json:"distribute"`
	StoreWarehouse int64 `json:"store_warehouse"`
	BindBike       int64 `json:"bind_bike"`
	UnbindBike     int64 `json:"unbind_bike"`
	BindUser       int64 `json:"bind_user"`
	UnbindUser     int64 `json:"unbind_user"`
}

type AreaStoreBike struct {
	AreaName  string `json:"area_name,omitempty"`
	StoreNum  int64  `json:"store_num,omitempty"`
	DeviceNum int64  `json:"device_num,omitempty"`
	AreaId    int64  `json:"area_id,omitempty"`
}

type StoreNum struct {
	AreaId   int64
	StoreNum int64
}

type DeviceNum struct {
	AreaId   int64
	StoreNum int64
}

// 店铺销售信息
type StoreSold struct {
	StoreId   int64  `json:"store_id"`
	StoreName string `json:"store_name"`
	Sold      int64  `json:"sold"`
}

// 销售排行
type StoreRankResponse struct {
	Rank []StoreSold `json:"rank"`
}

type NationStoreBikeResponse struct {
	Areas []AreaStoreBike `json:"areas,omitempty"`
}

// 上月用车用户
type RideLastMonthResponse struct {
	RideLastMonth Comparison `json:"ride_last_month"`
}

// 用车用户图
type RideWaveResponse struct {
	UnbindUserRide Wave   `json:"unbind_user_ride"`
	BindUserRide   Wave   `json:"bind_user_ride"`
	Period         PERIOD `json:"period"`
}

// 门店新增面板
type StoreIncreaseBoardResponse struct {
	Total             int64      `json:"total"`
	IncreaseLastMonth Comparison `json:"increase_last_month"`
}

// 门店新增波浪图
type StoreIncreaseWaveResponse struct {
	StoreIncrease Wave   `json:"store_increase"`
	Period        PERIOD `json:"period"`
}

// SimBoardResponse sim营收面板
type SimBoardResponse struct {
	ActivatedTotal     int64      `json:"activate_total"`
	IncomeTotal        float64    `json:"income_total"`
	ActivatedLastMonth Comparison `json:"activated_last_month"`
	IncomeLastMonth    Comparison `json:"income_last_month"`
}

// sim卡营收波浪图
type SimWaveResponse struct {
	Period    PERIOD `json:"period"`
	Activated Wave   `json:"activated"`
	Income    Wave   `json:"income"`
}
